package com.ruoyi.recycleshop.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("shop_exchange_record")
@Accessors(chain = true)
public class ShopExchangeRecord implements Serializable {
    private static final long serialVersionUID = 4220711401052573445L;
    @ApiModelProperty(value = "订单号")
    @TableId(type = IdType.INPUT)
    private String orderNo;
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "商店ID")
    private Long shopId;
    @ApiModelProperty(value = "商店名称")
    private String shopName;
    @ApiModelProperty(value = "优惠额度")
    private BigDecimal discount;
    @ApiModelProperty(value = "优惠券信息")
    private String couponDetail;
    @ApiModelProperty(value = "优惠券号")
    private String couponNo;
    @ApiModelProperty(value = "总价")
    private BigDecimal amount;
    @ApiModelProperty(value = "蓝星币支付")
    private Long blueCoinPay;
    @ApiModelProperty(value = "支付方式")
    private String payType;
    @ApiModelProperty(value = "客户ID")
    private Long userId;
    @ApiModelProperty(value = "客户 openID")
    private String openId;
    @ApiModelProperty(value = "手机号")
    private String phone;
    @ApiModelProperty(value = "收入方式")
    private String incomeType;
    @ApiModelProperty(value = "优惠前金额")
    private BigDecimal originAmount;

    @ApiModelProperty(value = "交易状态")
    private String status;
}
